﻿@model JT.Domain.GeneralLedger

@{
    ViewData["Title"] = "开始记账";
}

<h1>@ViewData["Title"]</h1>

<hr />
<div class="row">
    <div class="col-md-4">
        <form asp-action="Create">
            <div asp-validation-summary="ModelOnly" class="text-danger"></div>
            <div class="form-group">
                <label asp-for="SummaryNavigation.SummaryName" class="control-label"></label>
                <input asp-for="SummaryNavigation.SummaryName" class="form-control" />
                <span asp-validation-for="SummaryNavigation.SummaryName" class="text-danger"></span>
            </div>
             <div class="form-group">
                <label asp-for="GLName" class="control-label"></label>
                <input asp-for="GLName" class="form-control" />
                <span asp-validation-for="GLName" class="text-danger"></span>
            </div>
             <div class="form-group">
                <label asp-for="Detail" class="control-label"></label>
                <input asp-for="Detail" class="form-control" />
                <span asp-validation-for="Detail" class="text-danger"></span>
            </div>      
             <div class="form-group">
                <label asp-for="DebitAmount" class="control-label"></label>
                <input asp-for="DebitAmount" class="form-control" />
                <span asp-validation-for="DebitAmount" class="text-danger "></span>
            </div>
            <div class="form-group">
                <label asp-for="CreditAmount" class="control-label"></label>
                <input asp-for="CreditAmount" class="form-control" />
                <span asp-validation-for="CreditAmount" class="text-danger "></span>
            </div>
            <div class="form-group">
                <label asp-for="SummaryNavigation.Preparer" class="control-label"></label>
                <input asp-for="SummaryNavigation.Preparer" class="form-control" value="陈依琳" />
                <span asp-validation-for="SummaryNavigation.Preparer" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="SummaryNavigation.DebitDate" class="control-label"></label>
                <input asp-for="SummaryNavigation.DebitDate" class="form-control date_info" id="date_info" />
                <span asp-validation-for="SummaryNavigation.DebitDate" class="text-danger " id="date_info"></span>
            </div>
            
           
           
            <div class="form-group">
                <input type="submit" value="保存" class="btn btn-outline-success" />
            </div>
        </form>
    </div>
</div>

<div>
    <a asp-action="Index" onclick="return confirm('确定不保存就返回列表么?')">返回列表</a>
</div>

@section Scripts {
    @{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}
